import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router'
import Vuex from 'vuex'
import 'es6-promise/auto'
Vue.config.productionTip = true

Vue.use(VueRouter)

import HelloWorld from './components/HelloWorld'
import About from './components/About'
import Dialogue from './components/Dialogue'
import Chatlist from './components/Chatlist'
import Timetable from './components/Timetable'
import vuetify from './plugins/vuetify';

const routes = [
	{ path: '/', component: HelloWorld },
	{ path: '/about', component: About },
	{ path: '/dialogue', component: Dialogue},
	{ path: '/chatlist', component: Chatlist},
	{ path: '/timetable', component: Timetable },	
]

const router = new VueRouter({
	routes,
	mode: 'history'
})


Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		count: 0,
	},
	mutations: {
		increment (state){
			state.count++;
		},
	},
	getters: {
		getcount: state => {
			return state.count;
		},
	},
	actions: {
		incrementh (context) {
			context.commit('increment');
		},
	},
})





new Vue({
    el: '#app',
    render: h => h(App),
    router,
    vuetify,
    store
}).$mount('#app')

